$(function(){
  let progress = $('progress'),
      n = 0,
      c = 0;
  $('#start').click(()=>{
    n === 0 && (n = window.setInterval(()=>{
      progress.attr("value",c++)
    },100))
  }),
    $('#pause').click(()=>{
      window.clearInterval(n),
      n=0
    }),
    $('#reset').click(()=>{
      progress.attr('value',c=0)
    })
});
